#{extends 'main.html' /}
#{set title:'Home' /}

<script>
	var data = {};

$(function(){
	try{
	data = { 	title: 	'Cleaning Supplies',
		supplies: 	['mop', 'broom', 'duster'] 	};
	
	var result = new EJS({url: '/public/templates/tpl1.ejs'}).render(data);
	$('#template1').html(result);
	}
	catch(ex)
	{
		alert("Error: " + ex);
	}
});
</script>

<div>
	TEMPLATE
	<div id="template1">
	
	</div>
</div>